package gewu.suleju.sevice.imp;

import gewu.suleju.dao.iml.IHouseInforAllDao;
import gewu.suleju.model.vo.HouseInforAll;
import gewu.suleju.sevice.IHouseInforAllService;
import gewu.suleju.util.GetHouseInforAllUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class HouseInforAllServiceImp implements IHouseInforAllService {
    @Autowired
    private GetHouseInforAllUtil getHouseInforAllUtil;

    @Autowired
    private IHouseInforAllDao houseInforAllDao;

    @Override
    public List<HouseInforAll> findForHouseInforAll() {

        return getHouseInforAllUtil.GetHouseInforAll(houseInforAllDao.findByIsStatus(1));
    }
}
